package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    Set<Permission> findByRoleId(Integer roleId);

    Page<User> findByQueryString(String queryString);

    Permission findPermissionById(Integer id);

    void editPremission(Permission permission);

    void addPremission(Permission permission);

    Page<Permission> queryPage(String queryString);


    List<Permission> findAll();

    List<Integer> findByRoleid(Integer id);

    Page<Permission> findByCondition(String queryString);

    void addPermission(Permission permission);

    void delete(Integer id);

    Integer findCountById(Integer id);

    void deleteRoleAndPermission(Integer id);

    void edit(Permission permission);
}
